/**超限阀值设置 */

import * as React from "react";
import Search, { SearchState } from "./compontents/Search";
import SearchTable from "./compontents/SearchTable";

export interface OverrunThresholdSettingProps {}

export interface OverrunThresholdSettingState {
  condition: SearchState;
}

class OverrunThresholdSetting extends React.Component<
  OverrunThresholdSettingProps,
  OverrunThresholdSettingState
> {
  state = {
    condition: {
      likeStr: "",
    },
  };
  render() {
    let { condition } = this.state;
    return (
      <div className="OverrunThresholdSetting">
        <Search
          onSubmit={(data: SearchState) => {
            this.setState({ condition: data });
          }}
        />
        <SearchTable condition={condition} />
      </div>
    );
  }
}

export default OverrunThresholdSetting;
